package com.block.db.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 总账户流水表
 * </p>
 *
 * @author 
 * @since 2023-02-02
 */
@Getter
@Setter
@TableName("ml_account_info_his")
public class AccountInfoHis implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
      private Long id;

    private String dateInfo;

    /**
     * 账户ID
     */
    private Integer accountId;

    /**
     * 账户名称
     */
    private String accountName;

    /**
     * 账户类型
     */
    private String accountType;

    /**
     * 账户姓名
     */
    private String accountUser;

    /**
     * 账户编号
     */
    private String accountNo;

    /**
     * 操作类型 (  ADJUST 调账)（INCOME 收入）（PAYOUT 支出）
     */
    private String actionType;

    /**
     * 修改金额
     */
    private BigDecimal changeAmount;

    /**
     * 原余额
     */
    private BigDecimal originAmount;

    /**
     * 现余额
     */
    private BigDecimal currentAmount;

    /**
     * 状态（1 可用）（0 不可用）
     */
    private Integer status;

    private String dataId;

    private String dataType;

    private String dataRemark;

    /**
     * 操作员ID
     */
    private String operatorId;

    /**
     * 操作员姓名
     */
    private String operatorName;

      @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

      private String itemAccountType;
      private String itemAccountId;
      private String itemAccountKey;
      private String itemAccountName;

}
